package com.ruoyi.system.service.zhaungxiuservice.shopService.impl;

import com.ruoyi.system.domain.zhuangxiumain.orderformMain.WarehouseInfo;
import com.ruoyi.system.mapper.zhuangxiumapper.orderformMapper.WarehouseInfoMapper;
import com.ruoyi.system.service.zhaungxiuservice.shopService.WarehouseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarehouseInfoServiceImpl implements WarehouseInfoService {

    @Autowired(required = false)
    private WarehouseInfoMapper warehouseInfoMapper;

//    ***********  店铺仓库 *************


    @Override
    public WarehouseInfo selectWarehouseInfoById(Integer wid) {
        return warehouseInfoMapper.selectWarehouseInfoById(wid);
    }

    @Override
    public List<WarehouseInfo> selectWarehouseInfoList(WarehouseInfo warehouseInfo) {
        return warehouseInfoMapper.selectWarehouseInfoList(warehouseInfo);
    }

    @Override
    public int insertWarehouseInfo(WarehouseInfo warehouseInfo) {
        return warehouseInfoMapper.insertWarehouseInfo(warehouseInfo);
    }

    @Override
    public int updateWarehouseInfo(WarehouseInfo warehouseInfo) {
        return warehouseInfoMapper.updateWarehouseInfo(warehouseInfo);
    }

    @Override
    public int deleteWarehouseInfoByIds(Integer[] wids)
    {
        return warehouseInfoMapper.deleteWarehouseInfoByIds(wids);
    }

    @Override
    public int deleteWarehouseInfoById(Integer wid)
    {
        return warehouseInfoMapper.deleteWarehouseInfoById(wid);
    }
}
